<?php
namespace app\index\validate;
use think\Validate;
class Cms extends Validate
{

    protected $rule=[
        'category_id'=>'require',
        'author'=>'require',
        'content'=>'require'
    ];

    protected $message=[
        'category_id.require'=>'文章栏目不能为空',
        'author.require'=>'文章作者名不能为空',
        'content.require'=>'编辑内容不能为空'
    ];
}
